package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

//菜品业务层接口
public interface DishService extends IService<Dish> {
    //新增菜品
    @Transactional
    void saveWithFlavor(DishDto dishDto);
    //根据id查询菜品及菜品口味信息
    DishDto getByIdWithFlavor(Long id);
    //修改菜品
    void updateWithFlavor(DishDto dishDto);

    void removeWithDish(List<Long> ids);
}
